﻿@{
    ViewBag.Title = "Cập nhật";
    Layout = "~/Views/Shared/_Layout.Management.cshtml";
}


<form method="post" class="form" action="/Management/UserList/MySetting">
	<fieldset id="firstStep">
		<h2 class="app">
	        <strong>Express - Cập nhật thông tin</strong>
        </h2>
		<div class="errorMessage" data-bind="visible: InvalidateForm" >
		<span class="error">Xin hãy nhập thông tin bên dưới chính xác.</span>
		</div>				
		<div class="title">
			<h3>Thông tin cá nhân</h3>
		</div>
		<div class="columns">
			<div class="col indent">
				<div class="row">
					<label for="text1">Tên đầy đủ:</label>
					<input class="text" id="text1" type="text" data-bind="value: Fullname, attr:{maxlength:50}" name="Fullname" />
				</div>
				<div class="row">
					<label for="text2">Tên trước:</label>
					<input class="text" id="text2" type="text" data-bind="value: FirstName, attr:{maxlength:20}" name="FirstName" />
				</div>
				<div class="row">
					<label for="text3">Tên sau:</label>
					<input class="text" id="text3" type="text" data-bind="value: LastName, attr:{maxlength:30}" name="LastName" />
				</div>
			</div>
			<div class="col">
				<div class="row">
					<label for="text4">Địa chỉ email:<br><span style="font-weight:normal;" class="lightgray">Là tên đăng nhập chính</span></label>
					<input class="text readonly" id="text4" type="text" readonly="readonly" data-bind='value: Email, attr:{maxlength:100}' name="Email"/>
				</div>
                <div class="row">
					<label for="text5">Mật khẩu:</label>
					<input class="text" id="text5" type="password" data-bind="value: Password" name="Password"/>
				</div>
                <div class="row">
					<label for="text6">Xác nhận mật khẩu:</label>
					<input class="text" id="text6" type="password" data-bind="value: ConfirmPassword" />
				</div>
			</div>
		</div>  

		<div class="foot-info">
			<h3 class="centered-wbtn centered-wbtn-bottom save">
  				<span>
  					<a class="btn btn-cancel-page" href="/Management/UserList/MySetting">previous</a>
					<input type="button" class="btn btn-submit-page" data-bind="click: SubmitForm" value="Submit" />
                </span>
			</h3>
		</div>
	</fieldset>
</form>
<script type="text/javascript">
    var data = @(Html.Raw(Json.Encode(Model)));
</script>
<script src="/Scripts/viewModel/MySetting.js" type="text/javascript"></script>
